
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title> ShowDoc</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- <link href="https://www.showdoc.cc/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet"> -->
    <link href="//apps.bdimg.com/libs/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://www.showdoc.cc/Public/css/showdoc.css?v=1.1234" rel="stylesheet">
      <script type="text/javascript">
      var DocConfig = {
          host: 'www.showdoc.cc',
          app: "/",
          server: "/server",
          pubile:"/Public",
      }

      DocConfig.hostUrl = DocConfig.host + "/" + DocConfig.app;
      </script>
      
      <!-- 百度统计代码 -->
<!--      <script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?7c83eafa274048290cb2f71f911e8e0f";
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
      })();
      </script>-->

      <script src="https://www.showdoc.cc/Public/js/lang.zh-cn.js?v=212"></script>
  </head>
  <body>
<link href="https://www.showdoc.cc/Public/highlight/default.min.css" rel="stylesheet"> 
<link href="https://www.showdoc.cc/Public/lightbox/css/lightbox.css?v=1.1234567" rel="stylesheet"> 
<link href="https://www.showdoc.cc/Public/css/page/index.css?v=1.123456789" rel="stylesheet"> 
<h3 id="page_title">用户注册</h3>
<!-- 这里开始是内容 -->
<div id="page_md_content" ><textarea style="display:none;">
**简要描述：** 

- 用户注册接口

**请求URL：** 
- ` http://xx.com/api/user/register `
  
**请求方式：**
- POST 

**参数：** 

|参数名|必选|类型|说明|
|:----    |:---|:----- |-----   |
|username |是  |string |用户名   |
|password |是  |string | 密码    |
|name     |否  |string | 昵称    |

 **返回示例**
``` 
  {
    &quot;error_code&quot;: 0,
    &quot;data&quot;: {
      &quot;uid&quot;: &quot;1&quot;,
      &quot;username&quot;: &quot;12154545&quot;,
      &quot;name&quot;: &quot;吴系挂&quot;,
      &quot;groupid&quot;: 2 ,
      &quot;reg_time&quot;: &quot;1436864169&quot;,
      &quot;last_login_time&quot;: &quot;0&quot;,
    }
  }
```
 **返回参数说明** 

|参数名|类型|说明|
|:-----  |:-----|-----                           |
|groupid |int   |用户组id，1：超级管理员；2：普通用户  |

 **备注** 

- 更多返回错误代码请看首页的错误代码描述

</textarea></div>

<div id="page_html_content" style="display:none;"></div>

    
	<!-- <script src="https://www.showdoc.cc/Public/js/common/jquery.min.js"></script>
    <script src="https://www.showdoc.cc/Public/bootstrap/js/bootstrap.min.js"></script> -->
 	<script src="//apps.bdimg.com/libs/jquery/2.1.3/jquery.min.js"></script>
    <script src="//apps.bdimg.com/libs/bootstrap/2.3.2/js/bootstrap.min.js"></script>  
    <script src="https://www.showdoc.cc/Public/js/common/showdoc.js?v=1.1"></script>
    <script src="https://www.showdoc.cc/Public/layer/layer.js"></script>
    <div style="display:none">
	<script language="JavaScript">
		//站长统计统计代码
		var _hmt = _hmt || [];
		setTimeout(function(){
		    (function() {
		        var hm = document.createElement("script");
		        hm.src = "//s4.cnzz.com/stat.php?id=1259614235&web_id=1259614235";
		        var s = document.getElementsByTagName("script")[0];
		        s.parentNode.insertBefore(hm, s);
		    })();
		},0);

	</script>
    </div>
  </body>
</html> 

 <script src="//apps.bdimg.com/libs/highlight.js/9.1.0/highlight.min.js"></script> 
 <script src="https://www.showdoc.cc/Public/editor.md/lib/marked.min.js"></script>
 <script src="https://www.showdoc.cc/Public/editor.md/lib/prettify.min.js"></script>
 <script src="https://www.showdoc.cc/Public/editor.md/lib/flowchart.min.js"></script>
 <script src="https://www.showdoc.cc/Public/editor.md/lib/raphael.min.js"></script>
 <script src="https://www.showdoc.cc/Public/editor.md/lib/underscore.min.js"></script>
 <script src="https://www.showdoc.cc/Public/editor.md/lib/sequence-diagram.min.js"></script>
 <script src="https://www.showdoc.cc/Public/editor.md/lib/jquery.flowchart.min.js"></script>
 <script src="https://www.showdoc.cc/Public/editor.md/editormd.min.js?v=1"></script>
 <script src="https://www.showdoc.cc/Public/lightbox/js/lightbox.js?a=abc"></script>
 <script src="https://www.showdoc.cc/Public/js/page/index.js?a=abcedefgh"></script>